package com.saas.luckydomain.user;

import com.saas.config.exception.LdException;
import lombok.Getter;

import java.util.Objects;

@Getter
public class UserName {

    /**
     *用户名
     */
    private String username;

    public UserName(String username) {
        if (Objects.isNull(username)){
            throw new LdException("账号不能为空");
        }
        this.username = username;
    }
}
